home *** CD-ROM | disk | FTP | other *** search
- /* $Id$
- *
- * File ascii.sym
- * Part of ChessBase utilities file format (CBUFF)
- * Author Anjo Anjewierden, anjo@swi.psy.uva.nl
- * Purpose Mapping of symbol names onto plain ASCII
- * Works with CBUFF 0.3
- *
- * Notice Copyright (c) 1993 Anjo Anjewierden
- *
- * History 04/07/93 (Created)
- * 04/07/93 (Last modified)
- */
-
-
- /*------------------------------------------------------------
- * Motivation
- *------------------------------------------------------------*/
-
- /* A ChessBase file contains special characters for which there
- * is no generally accepted ASCII representation. This file
- * contains the default mappings of special chess symbols onto
- * ASCII.
- *
- * You can modify the default mapping by copying this file,
- * making the necessary modifications, and then providing the
- * name of the copied file as the argument to the ``-symbols''
- * option of CBUFF.
- */
-
-
- /*------------------------------------------------------------
- * Description
- *------------------------------------------------------------*/
-
- /* The format of each entry is:
- *
- * NameOfChessSymbol: "value-of-chess-symbol"
- *
- * The colon (:) is mandatory, it may be followed by white space
- * to align the columns. The value is put between quote characters.
- * The quote character can be any character that does not appear in
- * the value. The following are, for example, all legal and their
- * meaning is the same:
- *
- * KingSymbol: "K"
- * KingSymbol: /K/
- * KingSymbol: +K+
- *
- * The backslash (\) is used as an escape character. The following
- * escape sequences are recognised:
- *
- * \n Newline
- * \t Tab
- * \\ Backslash
- * \x x itself
- */
-
-
- /*------------------------------------------------------------
- * Chess pieces
- *------------------------------------------------------------*/
-
- KingSymbol: "K"
- QueenSymbol: "Q"
- RookSymbol: "R"
- BishopSymbol: "B"
- KnightSymbol: "N"
- PawnSymbol: "P" Only used for comments
-
-
- /*------------------------------------------------------------
- * Internal
- *------------------------------------------------------------*/
-
- NextLine: " " Next line in a comment
-
-
- /*------------------------------------------------------------
- * Result of a game
- *------------------------------------------------------------*/
-
- WhiteWins: "1:0"
- BlackWins: "0:1"
- Draw: "1/2:1/2"
-
-
- /*------------------------------------------------------------
- * Evaluation of a move
- *------------------------------------------------------------*/
-
- GoodMove: "!"
- BadMove: "?"
- InterestingMove: "!?"
- DubiousMove: "?!"
- BrilliantMove: "!!"
- Blunder: "??"
- Mate: "#"
-
-
- /*------------------------------------------------------------
- * Evaluation of a position
- *------------------------------------------------------------*/
-
- WhiteBetter: "+="
- WhiteAdvantage: "(+-)"
- WhiteWinning: "+-"
- Equality: "="
- Unclear: "%"
- BlackBetter: "=+"
- BlackAdvantage: "(-+)"
- BlackWinning: "-+"
- WhiteCompensation: "&="
- BlackCompensation: "=&"
- Compensation: "&"
-
-
- /*------------------------------------------------------------
- * Fractions
- *------------------------------------------------------------*/
-
- Quarter: "1/4"
- Half: "1/2"
- ThreeQuarters: "3/4"
-
-
- /*------------------------------------------------------------
- * Informator style special symbols
- *------------------------------------------------------------*/
-
- Etc: "||"
- BishopPair: "(bp)"
- OppositeBishops: "(ob)"
- SameBishops: "(sb)"
- DoublePawn: "(dp)"
- PassedPawn: "(pp)"
- IsolatedPawn: "(ip)"
- ConnectedPawn: "(cp)"
- WorseIs: "<="
- BetterIs: ">="
- SpaceAdvantage: "(sp)"
- OnlyMove: "$"
- WithIdea: "(id)"
- QueensSide: "<<"
- KingsSide: ">>"
- With: "|_"
- Without: "_|"
- WithInitiative: "^"
- WithAttack: "->"
- WithCounterplay: "<->"
- Diagonal: "</>"
- Centre: "(ce)"
- LineFile: "<=>"
- Endgame: "(en)"
- Zugzwang: "(zz)"
- TimeTrouble: "(tm)"
- DevelopmentAdvantage: "^^"
- Novelty: "N"
- WeakPoint: "X"
- PawnEvaluation: "o"
- PawnConnection: ".."
- EditorialComment: "(RR)"
-
-
- /*------------------------------------------------------------
- * Accents and such
- *------------------------------------------------------------*/
-
- Acute_E: "E"
- Acute_a: "a"
- Acute_e: "e"
- Acute_i: "i"
- Acute_o: "o"
- Acute_u: "u"
- Cedille_C: "C"
- Cedille_c: "c"
- Circumflex_a: "a"
- Circumflex_e: "e"
- Circumflex_i: "i"
- Circumflex_o: "o"
- Circumflex_u: "u"
- Dot_A: "A"
- Dot_a: "a"
- German_S: "ss"
- Grave_a: "a"
- Grave_e: "e"
- Grave_i: "i"
- Grave_o: "o"
- Grave_u: "u"
- Scandi_AE: "AE"
- Scandi_ae: "ae"
- Tilde_N: "N"
- Tilde_n: "n"
- Umlaut_A: "Ae"
- Umlaut_O: "Oe"
- Umlaut_U: "Ue"
- Umlaut_a: "ae"
- Umlaut_e: "e"
- Umlaut_i: "i"
- Umlaut_u: "ue"
- Umlaut_y: "y"
-
-
- /*------------------------------------------------------------
- * Printing moves
- *------------------------------------------------------------*/
-
- CastlingShort: "0-0" 0 is zero
- CastlingLong: "0-0-0" 0 is zero
- CaptureSymbol: "x" "" doesn't print captures
- IncheckSymbol: "+" "" doesn't print check
- MoveHyphen: "-" As in Kg1-h1
- PromotionSymbol: "=" As in e7-e8=Q
- WhiteMoveSymbol: "." As in 21.e5
- BlackMoveSymbol: "..." As in 21...Bg7
-
-
- /*------------------------------------------------------------
- * Printing variations
- *------------------------------------------------------------*/
-
- StartMajorAlternative: "[" Alternative at top-level
- EndMajorAlternative: "]"
- StartAlternative: "(" Alternative at lower level
- EndAlternative: ")"
- StartComment: "{" Textual comment start
- EndComment: "}"
- StartSubAlternative: "; " Second (etc.) alternative
-
-
- /*------------------------------------------------------------
- * Printing diagrams
- *------------------------------------------------------------*/
-
- StartDiagram: "\n\n\t"
- EndDiagram: "\n\n"
- StartDiagramRank: "\t"
- EndDiagramRank: "\n"
- DiagramWK: "WK "
- DiagramWQ: "WQ "
- DiagramWR: "WR "
- DiagramWB: "WB "
- DiagramWN: "WN "
- DiagramWP: "WP "
- DiagramBK: "BK "
- DiagramBQ: "BQ "
- DiagramBR: "BR "
- DiagramBB: "BB "
- DiagramBN: "BN "
- DiagramBP: "BP "
- DiagramWhiteSquare: " "
- DiagramBlackSquare: "** "
-
-